package com.sandman.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sandman.article.po.ArticlePo;
import com.sandman.vo.ArticleVo;

import java.util.List;

/**
 * @author 范珈诚
 * time 11:06 AM 9/26/22
 * notes
 */
public interface ArticleMapper extends BaseMapper<ArticlePo> {

    /**
     * 返回最新文章
     */
    ArticlePo getNewest();

    /**
     * 返回当天最热
     */
    ArticlePo getHottest24H();

    /**
     * 返回一周内热门
     */
    ArticlePo getHottestWeek();

    /**
     * 返回随机文章
     */
    ArticlePo getRandom();
}
